<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>列出所有书籍</title>
</head>
<body>
	<table border="1" width="80%">
		<tr>
			<td>书籍编号</td>
			<td>书名</td>
			<td>作者</td>
			<td>售价</td>
			<td>描述</td>
			<td>操作</td>

		</tr>
		
		<c:forEach var="me" items="${map }">
		<tr>
			<td>${me.key }</td>
			<td>${me.value.name }</td>
			<td>${me.value.author }</td>
			<td>${me.value.price }</td>
			<td>${me.value.description }</td>
			<td>
			<a href="${pageContext.request.contextPath }/BuyServlet?bookid=${me.key}">购买</a>
			</td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>